<?php
/**
* 描述：账户预载类。
*/
abstract class Controller_Public_Account extends Controller_Public_Preload{
    const ACCOUNT_ACTION_DEFAULT='common';

    const ACCOUNT_ACTION_OTHER='other';

    protected $TemplatePreLoadMode=self::TEMPLATE_PRELOAD_MODE_ACCOUNT_COMMON;

    public function __Construct($method){
        if(isset($this->AccountAction)){
            if($this->AccountAction===self::ACCOUNT_ACTION_DEFAULT){
                $this->CommonFunction();
            }
            elseif($this->AccountAction===self::ACCOUNT_ACTION_OTHER){
                echo 'other account','<br/>';
            }
        }
        else{
            $this->CommonFunction();
        }
        parent::__Construct($method);
    }

    private function CommonFunction(){
        echo 'account check','<br/>';
    }
}

